$fontSzie:75px;
$bgColor:#f5f5f5;
$color_1fa3ff:#1fa3ff;
img {
    width: 100%;
}

// function 
@function rem($pixels) {
    @return $pixels / $fontSzie+rem;
}

@mixin browser($attrs, $kits:(webkit, moz, ms, o)) {
    @if $attrs {
        @each $k,
        $v in $attrs {
            @each $kit in $kits {
                -#{$kit}-#{$k}: $v;
            }
            #{$k}:$v;
        }
    }
}

@mixin attrDpr($attrs) {
    @each $k,
    $v in $attrs {
        [data-dpr="1"] & {
            #{$k}: $v/2;
        }
        [data-dpr="2"] & {
            #{$k}: $v;
        }
        [data-dpr="3"] & {
            #{$k}: $v * 1.5;
        }
    }
}

//文本截断
@mixin lineClamp($lines) {
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: $lines; // number of lines to show
    overflow: hidden;
    line-height: 1.5;
    max-height: 1.5 * $lines;
}

html,
body {
    background: #fff;
}

.index_content {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    .content_box {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        .mine_award {
            position: absolute;
            right: 0;
            top: rem(82px);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: rem(24px);
            background: url(../../../img/mine_award.png) no-repeat;
            width: rem(112px);
            height: rem(46px);
            line-height: 1;
            background-size: 100%;
            display: none;
            a {
                color: #ffde00;
            }
            &.active {
                display: block;
                display: flex;
            }
        }
        .award_box {
            margin: 0 auto;
            margin-top: rem(686px);
            width: rem(606px); // background: rgba(0, 0, 0, .4);
            display: flex;
            flex-wrap: wrap;
            position: relative;
            li {
                width: rem(200px);
                height: rem(166px);
                display: flex;
                justify-content: center;
                align-items: center;
                margin-right: rem(3px);
                border-radius: rem(24px);
                background: url(../../../img/award_bg.png) no-repeat top left;
                background-size: 100%;
                margin-bottom: rem(3px);
                &.active {
                    background-image: url(../../../img/award_bg1.png);
                }
                &:nth-child(3n+0) {
                    margin-right: 0;
                }
                .img {
                    width: rem(147px);
                    height: rem(110px);
                    img {
                        height: 100%;
                        width: 100%;
                    }
                }
                &.start_btn {
                    .img {
                        width: rem(200px);
                        height: rem(164px);
                        img {
                            height: 100%;
                            width: 100%;
                        }
                    }
                }
            }
        }
        .swiper-container {
            width: 100%;
            .swiper-slide {
                text-align: center;
                display: -webkit-box;
                display: -ms-flexbox;
                display: -webkit-flex;
                display: flex;
                -webkit-box-pack: center;
                -ms-flex-pack: center;
                -webkit-justify-content: center;
                justify-content: center;
                -webkit-box-align: center;
                -ms-flex-align: center;
                -webkit-align-items: center;
                align-items: center;
            }
        }
        .winner_list {
            width: rem(560px);
            height: rem(66px);
            margin-top: rem(74px);
            margin-left: rem(116px);
            .swiper-slide {
                color: #fff;
                font-size: rem(26px);
                justify-content: space-between;
                .msg {
                    @include lineClamp(1);
                    padding-right: rem(36px);
                    width: 100%;
                    flex: 1;
                    box-sizing: border-box;
                }
                .date {}
            }
        }
        .award_title {
            margin-top: rem(50px);
            width: 100%;
            height: rem(34px);
            background: url(../../../img/title.png) no-repeat top left;
            background-size: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            .text {
                color: #fff;
                font-size: rem(36px);
            }
        }
        .rule_box {
            width: rem(679px);
            background: rgba(255, 255, 255, .16);
            padding: rem(34px);
            padding-bottom: rem(90px);
            box-sizing: border-box;
            margin: 0 auto;
            margin-top: rem(43px);
            line-height: 1.6;
            color: #fff;
            font-size: rem(24px);
        }
    }
}

.fixed_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    &.tips_modal {
        display: none;
        z-index: 9999;
        .modal_detail {
            top: rem(616px);
            left: rem(125px);
            width: rem(500px);
            position: absolute;
            z-index: 9999;
            .close {
                top: rem(-97px);
                right: 0;
            }
            .text {
                position: absolute;
                top: rem(130px);
                left: 50%;
                transform: translateX(-50%);
                width: 100%;
                color: #333;
                font-size: rem(28px);
                text-align: center;
            }
        }
    }
    &.active {
        display: block;
    }
    .bg_modal {
        background: rgba(0, 0, 0, .6);
        position: absolute;
        z-index: 100;
        width: 100%;
        top: 0;
        left: 0;
    }
    .modal_detail {
        position: absolute;
        z-index: 999;
    }
    .close {
        position: absolute;
        top: rem(226px);
        right: rem(40px);
        width: rem(56px);
        height: rem(56px);
    }
    .bg {}
    .content_box {
        position: absolute;
        top: rem(600px);
        left: 50%;
        transform: translateX(-50%);
        width: rem(554px); // background: rgba(0, 0, 0, .3);
        .title {
            font-size: rem(48px);
            color: #fff;
            line-height: 1;
            text-align: center;
        }
        .award {
            margin-top: rem(20px);
            color: #fff;
            font-size: rem(30px);
            text-align: center;
            span {
                color: #fbdc30;
                font-size: rem(40px);
            }
        }
        .tips {
            color: #f5b314;
            text-align: center;
            margin-top: rem(20px);
            font-size: rem(28px);
            margin-bottom: rem(25px);
        }
        .form_box {
            #fform {
                width: 100%;
                margin: 0 auto;
                .enter {
                    width: rem(450px);
                    height: rem(60px);
                    margin: 0 auto;
                    font-size: rem(30px);
                    margin-bottom: rem(20px);
                    color: #333;
                    box-sizing: border-box;
                    input {
                        width: 100%;
                        padding-left: rem(23px);
                        background: #fff;
                        border-radius: rem(5px);
                        height: 100%;
                        box-sizing: border-box;
                        border: none;
                        &::-webkit-input-placeholder {
                            color: #999;
                            font-size: rem(30px);
                        }
                    }
                }
                .enter1 {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    .code {
                        width: rem(270px);
                        height: rem(60px);
                    }
                    .code_btn {
                        width: rem(167px);
                        height: rem(60px);
                        input {
                            color: rgba(168, 14, 3, .8);
                            background: #fbdc30;
                            font-size: rem(28px);
                            padding-left: 0;
                        }
                    }
                }
            }
            .tips1 {
                font-size: rem(24px);
                color: rgba(245, 176, 18, .8);
                text-align: center;
                margin-bottom: rem(34px);
            }
            .submit_btn {
                width: rem(450px);
                height: rem(60px);
                background: url(../../../img/submit.png) no-repeat top left;
                background-size: 100%;
                margin: 0 auto;
                color: #c30e01;
                font-size: rem(30px);
                display: flex;
                justify-content: center;
                align-items: center;
                line-height: 1;
                a {
                    width: 100%;
                    height: 100%;
                    display: flex;
                    color: #c30e01;
                    justify-content: center;
                    align-items: center;
                }
            }
            .img {
                width: rem(270px);
                height: rem(270px);
                margin: rem(40px) auto;
                background: #fff;
                display: flex;
                justify-content: center;
                align-items: center;
            }
        }
        .rule_box {
            width: rem(450px);
            margin: 0 auto;
            margin-top: rem(42px);
            border-top: rem(2px) dashed rgba(255, 255, 255, .12);
            color: #f5b012;
            font-size: rem(24px);
            padding-top: rem(26px);
        }
    }
}

.success_content {
    .title {
        color: #fe6500;
        font-size: rem(40px);
        margin: 0 auto;
        padding-top: rem(52px);
        text-align: center;
    }
    .content {
        padding: 0 rem(60px);
        margin: 0 auto;
        font-size: rem(24px);
        color: #333;
        margin-top: rem(40px);
        span {
            color: #fe6500;
        }
    }
    .submitBtn {
        width: rem(630px);
        height: rem(80px);
        background-image: linear-gradient(268deg, #fe9b1b 0%, #fd670c 100%), linear-gradient( #00aaff, #00aaff);
        background-blend-mode: normal, normal;
        border-radius: rem(40px);
        margin: 0 auto;
        box-sizing: border-box;
        margin-top: rem(108px);
        button {
            background: none;
            color: #fff;
            border: none;
            width: 100%;
            height: 100%;
        }
    }
    .submitBtn1 {
        width: rem(630px);
        height: rem(80px);
        border-radius: rem(40px);
        margin: 0 auto;
        border: 1px solid #fe9419;
        box-sizing: border-box;
        margin-top: rem(20px);
        button {
            background: none;
            color: #fe9419;
            border: none;
            width: 100%;
            height: 100%;
        }
    }
    &.success_good {
        .form_box {
            form {
                .div_box {
                    width: 100%;
                    height: rem(100px);
                    background: #fff;
                    padding: 0 rem(40px);
                    box-sizing: border-box;
                    display: flex;
                    align-items: center;
                    border-bottom: 1px solid #f8f8f8;
                    .label {
                        font-size: rem(26px);
                        color: #444;
                        width: rem(190px);
                    }
                    .inp {
                        width: 100%;
                        flex: 1;
                        input {
                            width: 100%;
                            font-size: rem(22px);
                            height: 100%;
                            color: #444;
                            background: none;
                            border: none;
                            &::-webkit-input-placeholder {
                                color: #999;
                            }
                        }
                        textarea {
                            width: 100%;
                            font-size: rem(22px);
                            color: #444;
                            background: none;
                            resize: none;
                            border: none;
                            &::-webkit-input-placeholder {
                                color: #999;
                            }
                        }
                    }
                }
            }
        }
        .tips_box {
            margin-top: rem(10px);
            background: #fff;
            width: 100%;
            padding: rem(40px) rem(34px) rem(45px) rem(44px);
            box-sizing: border-box;
            .tips_title {
                color: #666;
                opacity: .8;
                font-size: rem(26px);
                margin-bottom: rem(14px);
            }
            .tips_msg {
                font-size: rem(26px);
                color: #333;
            }
        }
    }
    .code_box {
        width: 100%;
        height: rem(220px);
        background: #fff;
        display: flex;
        align-items: center;
        .label {
            color: #666666;
            opacity: 0.8;
            font-size: rem(30px);
            padding-left: rem(42px);
        }
        .code {
            font-size: rem(48px);
            color: #333;
            padding-left: rem(106px);
        }
    }
}

.mine_award_list {
    .th_list {
        display: flex;
        width: 100%;
        height: rem(103px);
        background: #fff;
        box-shadow: 0px 0px 15px 1px rgba(4, 0, 0, 0.06);
        li {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #999;
            font-size: rem(30px);
        }
    }
    .award_list {
        padding: 0 rem(16px);
        box-sizing: border-box;
        background: #fff;
        width: 100%;
        li {
            border-bottom: rem(2px) solid #f2f3f4;
            height: rem(120px);
            width: 100%;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #333;
            font-size: rem(26px);
            div {
                flex: 1;
                text-align: center;
                @include lineClamp(1);
            }
        }
    }
}